package cn.tedu.hospitalqd.mapper;

import cn.tedu.hospitalqd.pojo.entity.Doctor;
import cn.tedu.hospitalqd.pojo.vo.DoctorListItemVO;
import cn.tedu.hospitalqd.pojo.vo.DoctorStandardVO;
import org.springframework.stereotype.Repository;


import java.util.List;
@Repository
public interface DoctorMapper {
    int insert(Doctor doctor);
    List<Doctor> select();
    Doctor selectById(int id);
    int deleteById(Long i);
    int update(Doctor d);
    int selectCount();
    int countBydNumber(String dNumber);
    int deleteByIds1(Integer[] ids);
    void deleteByIds2(Integer... ids);
    void deleteByIds3(List<Integer> ids);
    int dynamicUpdate(Doctor doctor);

    int countByName(String name);

    DoctorStandardVO getStandardById(Long id);

    int countByNameAndNotId(Long id, String name);

    List<DoctorListItemVO> list();
}
